// package: rewords-server-2024
// filename: books_in
// author: diogoxiang@gmail.com
// time: 2024/12/2 16:33

package books_in

import (
	"context"

	"github.com/gogf/gf/v2/errors/gerror"
	"rewords-server-2024/internal/model/entity"
)

type BooksOriginAddInp struct {
	entity.BookOrigin
}

func (in *BooksOriginAddInp) Filter(ctx context.Context) (err error) {
	if in.OriginName == "" {
		err = gerror.New("书源名称不能为空")
		return
	}
	return
}
